package com.homework2;

public class Staff extends Employee {
    private String duty;

    public Staff(String name, String address, String telephone, String email, String office, double wage, String hiredate, String duty) {
        super(name, address, telephone, email, office, wage, hiredate);
        this.duty = duty;
    }

    public Staff() {

    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }
    public void print(){
        super.print();
        System.out.println("职务称号duty（String类型）。3");
    }
}
